#!/bin/bash 
arr=(11 22 33 44)
arr1=(11 [1]=22 [3]=44)
str=www.baidu.com

echo ${arr[0]}
echo ${arr[1]}
echo ${arr[@]}
echo ${arr1[@]}
echo "---------------------------"
echo ${arr1[2]}
echo ${arr1[@]}
echo ${#arr[@]}
echo ${#arr1[@]}
echo ${#arr[0]}
echo "---------------------------"
arr1[2]=55	#赋值
echo ${arr1[@]}
echo ${#str}
